/**
 * @(#)PhotoPanel.java
 *
 *
 * @Darren Olivier
 * @version 1.01 2007/12/3
 */
package project;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class PhotoPanel extends JPanel
{
	private JScrollPane jsp = null;
	private JButton captureB = null, okB = null;
	private ImageIcon ii = null;
	private JPanel topP = null, buttonP = null;
	private JLabel picLabel = null;
	
    public PhotoPanel() 
    {
    	ii = new ImageIcon();
    	picLabel = new JLabel(ii);
    	jsp = new JScrollPane(picLabel, JScrollPane.VERTICAL_SCROLLBAR_NEVER,
    							JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    	topP = new JPanel(new GridLayout(1,1));
    	topP.add(jsp);
    	
    	captureB = new JButton("Capture");
    	okB = new JButton("OK");
    	buttonP = new JPanel(new GridLayout(1,2));
    	buttonP.add(captureB);
    	buttonP.add(okB);
    	
    	this.setLayout(new BorderLayout());
    	this.add(topP, BorderLayout.CENTER);
    	this.add(buttonP, BorderLayout.SOUTH);
    	this.setPreferredSize(new Dimension(220, 100));
       	this.setBorder(BorderFactory.createEmptyBorder(100,50,50,50));
    }
    
    
}